home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / StockTalk / Source / StockPlugIn.r < prev    next >
Encoding:
Text File  |  1996-06-22  |  2.0 KB  |  71 lines  |  [TEXT/MPS ]

  1. #include "Types.r"
  2. #include "SysTypes.r"
  3.  
  4. #include "ArrangeModule.r.h"
  5.  
  6. /* This is the Rez input file for a "generic" plugin module.  For simple
  7.  * plugins, the only necessary customization should be to insert proper
  8.  * values for the ModuleName and ModuleID macros.  Each module you create
  9.  * should have a different value for ModuleID.  Contact CKI to get a range
  10.  * of IDs assigned for your use.
  11.  * 
  12.  * This version of GenericPlugin.r was written by Steve Newman on 12/24/93.
  13.  * Last updated 7/15/94.
  14.  */
  15.  
  16. #define ModuleName    "Your name here"        // Unique module name
  17. #define ModuleID         0x70000000                // Unique module ID
  18. #define ModuleRsrcID -0x8000                    // Base resource ID (needn't be unique)
  19. #define BuildDate    0                            // Replace with current build date
  20.  
  21.  
  22. resource 'vers' (1, purgeable) {
  23.     0x01, 0x00, final, 0,
  24.     verUS,
  25.     "1.0",
  26.     "Generic Plugin 1.0\n"
  27. };                                                    
  28.  
  29. resource ModuleDefType (ModuleRsrcID, ModuleName, preload, locked)
  30.     {
  31.     keepLocked,                // Module's code resources should always be locked (don't
  32.                                 // lock and unlock for each call)
  33.     loadAtBoot,                // Load the module when Arrange is launched
  34.     ModuleName,                // Unique module name
  35.     ModuleID,                // Unique module ID
  36.     0x00000000,                // Module version
  37.     BuildDate,                // Date when this module was built
  38.     ArrangeAppID,            // Target application (Arrange)
  39.     0x00000700,                // Target system version (7.0.0)
  40.     ArrangePonsVers,        // Target app version (Arrange 2.0)
  41.     0                            // relative ID of root code resource
  42.     };
  43.  
  44.  
  45. // ALRT resource for our plug-in about box
  46. resource 'ALRT' (ModuleRsrcID, purgeable)
  47. {
  48.     {90, 60, 210, 450},
  49.     ModuleRsrcID,
  50.         {    
  51.         OK, visible, silent,
  52.         OK, visible, silent,
  53.         OK, visible, silent,
  54.         OK, visible, silent
  55.         }
  56. #if SystemSevenOrLater
  57.     ,alertPositionMainScreen
  58. #endif
  59. };
  60.  
  61.  
  62. // DITL resource for our plug-in about box
  63. resource 'DITL' (ModuleRsrcID)
  64. {
  65.     {    
  66.         {90, 315, 110, 375},    Button     {enabled, "OK"},
  67.         {10,  70,  70, 370},    StaticText {disabled, "Stock Quote Plugin 1.0."},
  68.         {10,  20,  40,  50},    Icon       {disabled, 0}
  69.     }
  70. };
  71.